﻿
namespace AladdinGameFramework.Localization
{
	/// <summary>
	/// 加载字典时加载依赖资源事件。
	/// </summary>
	public sealed class LoadDictionaryDependencyAssetEventArgs : GameFrameworkEventArgs
	{
		/// <summary>
		/// 初始化加载字典时加载依赖资源的新实例
		/// </summary>
		/// <param name="dictionaryAssetName">字典资源名称</param>
		/// <param name="dependcyAssetName">被加载的依赖资源名称</param>
		/// <param name="loadedCount">当前已经加载依赖资源的数量</param>
		/// <param name="totalCount">总共加载依赖资源数量</param>
		/// <param name="userData">用户自定义数据</param>
		public LoadDictionaryDependencyAssetEventArgs(string dictionaryAssetName, string dependcyAssetName, int loadedCount, int totalCount, object userData)
		{
			DictionaryAssetName = dictionaryAssetName;
			DependencyAssetName = dependcyAssetName;
			LoadedCount = loadedCount;
			TotalCount = totalCount;
			UserData = userData;
		}

		/// <summary>
		/// 获取字典资源名称
		/// </summary>
		public string DictionaryAssetName
		{
			get;
			private set;
		}

		/// <summary>
		/// 获取被加载的依赖资源名称
		/// </summary>
		public string DependencyAssetName
		{
			get;
			private set;
		}

		/// <summary>
		/// 获取当前已加载依赖资源数量
		/// </summary>
		public int LoadedCount
		{
			get;
			private set;
		}

		/// <summary>
		/// 获取总共加载依赖资源数量
		/// </summary>
		public int TotalCount
		{
			get;
			private set;
		}

		/// <summary>
		/// 获取自定义用户数据
		/// </summary>
		public object UserData
		{
			get;
			private set;
		}
	}
}
